// 引入主题变量
@import './themes/variables.scss';
@import './themes/light.scss';
@import './themes/dark.scss';

// 变量
$primary-color: #4a6baf;
$secondary-color: #30b995;
$error-color: #e74c3c;
$warning-color: #f39c12;
$success-color: #2ecc71;
$background-color: #f8f9fa;
$text-color: #333;
$border-color: #ddd;
$card-bg: #fff;
$box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

// 基础样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  'Noto Color Emoji';
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-base);
}

// 通用样式
.page-container {
  padding: 16px;
  height: 100%;
}

.page-header {
  margin-bottom: 24px;

  h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .page-description {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
  }
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.text-center {
  text-align: center;
}

// 加载状态
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-size: 16px;
  color: var(--color-primary);
}
